StoreEngine\Addons\Stripe\StripeService A

Total Complexity 64
Dependencies 12
Dependents 4
Total lines 396
Lines of code 318
Logical lines of code 148
Comment lines 14
Methods 28
Properties 8

Methods 28

Method Rating Maintainability Complexity Lines of code
create_payment_intent()
A
43 7 47
init_settings()
S
55 5 17
validate_publishable_key()
S
61 3 12
create_payment_intent_and_charge_for_subscription()
S
52 2 24
create_subscription()
S
58 2 18
create_price()
S
59 2 15
is_stripe_configured()
S
64 3 10
search_subscription()
S
65 3 9
create_charge()
S
62 2 12
init()
S
71 2 6
get_webhook()
S
69 2 7
get_payment_method()
S
69 2 7
get_balance_history()
S
69 2 7
refund()
S
64 2 10
capture_payment()
S
69 2 7
validate_keys()
S
63 2 10
resume_subscription()
S
66 2 9
create_webhook()
S
64 2 10
retrieve_subscription()
S
69 2 7
list_subscriptions()
S
69 2 7
cancel_subscription()
S
69 2 7
get_payment_intent()
S
69 2 7
create_customer()
S
64 2 10
create_product()
S
64 2 10
create_setup_intent()
S
69 2 7
create_product_and_subscription()
S
60 1 13
__construct()
S
77 1 4
get_subscription_current_period_info()
S
66 1 9